package request

// User register structure
type Register struct {
	Username string `json:"username"`
	Password string `json:"password"`
	NickName string `json:"nick_name" gorm:"default:'KakaUser'"`
	RoleId   string `json:"role_id" gorm:"default:888"`
}

// User login structure
type Login struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

// Modify password structure
type ChangePasswordStruct struct {
	Username    string `json:"username"`
	Password    string `json:"password"`
	NewPassword string `json:"new_password"`
}

// Modify  user's auth structure
type SetUserAuth struct {
	UUID   string `json:"uuid"`
	RoleId string `json:"role_id"`
}

type PageInfo struct {
	Page     int `json:"page" form:"page"`
	PageSize int `json:"page_size" form:"page_size"`
}

type GetById struct {
	Id float64 `json:"id" form:"id"`
}
